<?php

;//require_once 'Base/VideoRow.php';

/**
 * Generated Model class.
 */
class VideoRow extends Base_VideoRow implements IContentListElementProvider 
{
	public function getContentListElement($type = null)
	{
		$element = new List_Video();
		$profileRow = $this->getProfileRowByProfileId();
		$element->setUrl($this->getUrl());
		if ($profileRow) {
			$element->setProfileName($profileRow->getFirstName());
			$element->setProfileUrl('#');			
		}
		$element->setDescription($this->getDescription());
		$element->setTotalViews($this->getTotalViews());
		$element->setTotalComments($this->getTotalComments());
		return $element;
	}

}

